<h1><?php echo dl_lang_general("main.create_account"); ?></h1>

<?php 
    setMessages();
    if (!isset($data["formCreateAccount"])) 
        $data["formCreateAccount"] = array(); 
    $pohlavi = getInum("SEX");
?>

<form method='post' action='' name='newAccountForm'>
    <input type='hidden' name='xfunction' value='xCreateAccount'>
    <table align='center' cellpadding="2">
        <tr>
            <th><?php echo dl_lang_general("form.name"); ?></th>
            <td><?php echo form_text("name", $data["formCreateAccount"], 30, 20); ?></td>
        </tr>
        <tr>
            <th><?php echo dl_lang_general("form.password"); ?></th>
            <td><?php echo form_password("password", "", 30); ?></td>
        </tr>
        <tr>
            <th><?php echo dl_lang_general("form.password2"); ?></th>
            <td><?php echo form_password("password2", "", 30); ?></td>
        </tr>
        <tr>
            <th><?php echo dl_lang_general("form.mail"); ?></th>
            <td><?php echo form_text("mail", $data["formCreateAccount"], 30); ?></td>
        </tr>
        <tr>
            <th><?php echo dl_lang_general("form.sex"); ?></th>
            <td><?php echo form_select("sex", $pohlavi, $data["formCreateAccount"]); ?></td>
        </tr>
    </table>
    
    <table align='center'>
        <tr>
            <td><input type="checkbox" name="agree"></td>
            <td><?php echo dl_lang_general("form.agreement")." ".html_href("faq", dl_lang_general("form.agreement2")); ?></td>
        </tr>
    </table>
    
    <br />
    
    <center>
        <button onclick='newAccountForm.submit();'><?php echo dl_lang_general("form.register"); ?></button>
    </center>
</form>